package edu.pku.sei.transformation.editor.controller.editparts.link;

import org.eclipse.draw2d.IFigure;
import org.eclipse.gef.EditPolicy;

import edu.pku.sei.modeler.edit.parts.AbstractLinkEditPart;
import edu.pku.sei.modeler.model.structure.MetaShapeElement;
import edu.pku.sei.transformation.editor.controller.policies.TransformationtConnetionEditPolicy;
import edu.pku.sei.transformation.editor.views.figures.ConnectionFigure;

public abstract class TransformationLinkEditPart extends AbstractLinkEditPart {
	public TransformationLinkEditPart(MetaShapeElement conn) {
		super(conn);
	}

	protected void createEditPolicies() {
		super.createEditPolicies();
		installEditPolicy(EditPolicy.CONNECTION_ROLE,
				new TransformationtConnetionEditPolicy());
	}

	@Override
	protected IFigure createFigure() {
		ConnectionFigure figure = new ConnectionFigure();
		return figure;
	}

}
